package modele;

public class TeleportCell extends AbstractCell {

	int destination;

	public TeleportCell(int i, int dest) {
		this.numCell = i;
		this.destination = dest;
		this.typeCell = "TP";
	}

	@Override
	public int handleMove(int diceThrow) {
		return destination;
	}

	@Override
	public void welcome(int diceThrow) {
		System.out.println(" +--> cell [" + getIndex()
				+ "] : Teleport in case " + destination + "!");
	}
}
